Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CancelCashReceiptResponse(val cancelledAmount: Long, val cancelledAt: @Serializable(with = InstantSerializer::class) Instant)

현금 영수증 취소 성공 응답

Link copied to clipboard
@Serializable
@SerialName(value = "CANCELLED")
data class CancelledCashReceipt(val merchantId: String, val storeId: String, val paymentId: String, val channel: SelectedChannel, val amount: Long, val taxFreeAmount: Long? = null, val vatAmount: Long? = null, val currency: Currency, val orderName: String, val isManual: Boolean, val type: CashReceiptType? = null, val pgReceiptId: String? = null, val issueNumber: String, val url: String? = null, val issuedAt: @Serializable(with = InstantSerializer::class) Instant, val cancelledAt: @Serializable(with = InstantSerializer::class) Instant, val statusUpdatedAt: @Serializable(with = InstantSerializer::class) Instant? = null) : CashReceipt.Recognized

발급 취소

Link copied to clipboard
@Serializable(with = CashReceiptSerializer::class)
sealed interface CashReceipt

현금영수증 내역

Link copied to clipboard
class CashReceiptClient(apiSecret: String, apiBase: String = "https://api.portone.io", storeId: String? = null) : Closeable

API Secret을 사용해 포트원 API 클라이언트를 생성합니다.

Link copied to clipboard
@Serializable
data class CashReceiptFilterInput(val storeId: String? = null, val timeRangeField: CashReceiptTimeRangeField? = null, val from: @Serializable(with = InstantSerializer::class) Instant? = null, val until: @Serializable(with = InstantSerializer::class) Instant? = null, val paymentId: String? = null, val isTest: Boolean? = null, val orderName: String? = null, val statuses: List<CashReceiptStatus>? = null, val isManual: Boolean? = null, val pgReceiptId: String? = null, val pgMerchantId: String? = null, val pgProviders: List<PgProvider>? = null, val pgCompanies: List<PgCompany>? = null, val version: PortOneVersion? = null)

현금영수증 다건 조회를 위한 입력 정보

Link copied to clipboard
@Serializable(with = CashReceiptSortBySerializer::class)
sealed interface CashReceiptSortBy

현금영수증 정렬 기준

Link copied to clipboard
@Serializable
data class CashReceiptSortInput(val by: CashReceiptSortBy? = null, val order: SortOrder? = null)

현금영수증 다건 조회 시 정렬 조건

Link copied to clipboard
@Serializable(with = CashReceiptStatusSerializer::class)
sealed interface CashReceiptStatus

현금영수증 발급 건 상태

Link copied to clipboard
@Serializable
data class CashReceiptSummary(val issueNumber: String, val url: String, val pgReceiptId: String)

현금영수증 내역

Link copied to clipboard
@Serializable(with = CashReceiptTimeRangeFieldSerializer::class)
sealed interface CashReceiptTimeRangeField

현금영수증 다건 조회 시, 시각 범위를 적용할 필드

Link copied to clipboard
@Serializable
data class GetCashReceiptsResponse(val items: List<CashReceipt>, val page: PageInfo)

현금영수증 다건 조회 성공 응답 정보

Link copied to clipboard
@Serializable
data class IssueCashReceiptCustomerInput(val identityNumber: String, val name: String? = null, val email: String? = null, val phoneNumber: String? = null)

현금영수증 발급 시 고객 관련 입력 정보

Link copied to clipboard
@Serializable(with = IssueCashReceiptPaymentMethodTypeSerializer::class)
sealed interface IssueCashReceiptPaymentMethodType

현금영수증 발급 가능 결제 수단

Link copied to clipboard
@Serializable
data class IssueCashReceiptResponse(val cashReceipt: CashReceiptSummary)

현금 영수증 발급 성공 응답

Link copied to clipboard
@Serializable
@SerialName(value = "ISSUED")
data class IssuedCashReceipt(val merchantId: String, val storeId: String, val paymentId: String, val channel: SelectedChannel, val amount: Long, val taxFreeAmount: Long? = null, val vatAmount: Long? = null, val currency: Currency, val orderName: String, val isManual: Boolean, val type: CashReceiptType? = null, val pgReceiptId: String? = null, val issueNumber: String, val url: String? = null, val issuedAt: @Serializable(with = InstantSerializer::class) Instant, val statusUpdatedAt: @Serializable(with = InstantSerializer::class) Instant? = null) : CashReceipt.Recognized

발급 완료

Link copied to clipboard
@Serializable
@SerialName(value = "ISSUE_FAILED")
data class IssueFailedCashReceipt(val merchantId: String, val storeId: String, val paymentId: String, val channel: SelectedChannel? = null, val orderName: String, val isManual: Boolean, val statusUpdatedAt: @Serializable(with = InstantSerializer::class) Instant? = null) : CashReceipt.Recognized

발급 실패